package cn.glutnn.auth.common.entity;

import lombok.Data;

/**
 * Author:   msh
 * Date:     2024/11/28 下午9:42
 * Description:
 */

@Data
public class PageInfo {
    private Integer pageNo = 1;
    private Integer pageSize = 20;

    public Integer getPageNum() {
        if (pageNo == null || pageNo < 1) {
            return 1;
        }
        return pageNo;
    }

    public Integer getPageSize() {
        if (pageSize == null || pageSize < 1) {
            return 20;
        }
        return pageSize;
    }
}
